package com.song.tools.songtest.beans.response;

import com.song.tools.songtest.beans.vo.RoleVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 用户登录响应体
 * </p>
 *
 * @author song tools
 * @since 2024-07-09
 */
@Data
@Accessors(chain = true)
@Schema(title = "SysUserLoginResponse", description = "用户登录响应体")
public class SysUserLoginResponse {
    /**
     * 用户账号
     */
    @Schema(title = "loginAccount", description = "用户账号")
    private String loginAccount;

    /**
     * 用户名称
     */
    @Schema(title = "username", description = "用户名称")
    private String username;

    /**
     * 头像
     */
    @Schema(title = "profilePhoto", description = "头像")
    private String profilePhoto;

    /**
     * 自增主键
     */
    @Schema(title = "id", description = "自增主键")
    private Long id;

    /**
     * token
     */
    @Schema(title = "token", description = "token")
    private String token;

    /**
     * 角色列表
     */
    @Schema(title = "roles", description = "角色列表")
    private List<RoleVO> roles;
}
